import Vue from 'vue'
// 直接将Vue组件作为Vue.extend的参数
import commentModel from './commentModel';
import store from "@/store";

const showDjCommentModel = (data, config) => {
  const choiceTreeConstructor = Vue.extend(commentModel);
  const instance = new choiceTreeConstructor({
    el: document.createElement("div"),
    store
  });

  document.querySelector("body").appendChild(instance.$el);
  return instance.show(data, config);
}

export default showDjCommentModel;